//定义路由模块
define("router",["backbone"],function(Backbone){
	var Router=Backbone.Router.extend({
		routes:{
			"":"home",
			"home":"home",
			"market":"market",
			"cart":"cart",
			"mime":"mime"
		},
		"home":function(){
			require(["home"],function(homeMode){
				homeMode.init()
			})
		},
		"market":function(){
			require(["market"],function(marketMode){
				marketMode.init()
			})
		},
		"cart":function(){
			require(["cart"],function(cartMode){
				cartMode.init()
			})
		},
		"mime":function(){
			require(["mime"],function(mimeMode){
				mimeMode.init()
			})
		}
	});
	return new Router();
})